package com.dong.classovertest;

import java.util.*;

public class RandomTest {
    public static void main(String[] args) {
        HashSet<Integer> set = new HashSet<>();
        Random random = new Random();
        for (int i=0;set.size()<7;i++){
            set.add(random.nextInt(49)+1);
        }
        System.out.println(set);
    }
}
